from fastapi import APIRouter, Depends

from app.api.h5.service.coupon.coupon import CouponService
from app.utils.res import unified_resp


coupon = APIRouter(prefix="/coupon", tags=["优惠券"])


@coupon.post("/list")
@unified_resp
async def list(coupon_service:CouponService=Depends(CouponService.instance)):
    return await coupon_service.list()
